import service from "../../utils/request";

export function getgrow(query) {
  return service({
    url: "/Grow/query",
    method: "get",
    params: query,
  });
}
export function getplant(query) {
  return service({
    url: "/Grow/plant",
    method: "get",
    params: query,
  });
}

export function getgrows(plantname) {
  return service({
    url: `/Grow/query?plantname=${plantname}`,
    method: "get",
  });
}

export function getgrowadd(data) {
  return service({
    url: "/Grow/add",
    method: "put",
    data: data,
  });
}
export function getgrowadds(data) {
  return service({
    url: "/Grow/add",
    method: "put",
    data: data,
  });
}
